export namespace="iam-system"
export app_name="authentik"
export repo="authentik"
export helm="$repo/$app_name"
export url="https://charts.goauthentik.io"

export YOUR_SECRET_KEY="RhklsbQq8qjSnfUJVOBfZcgj1R5xryd5WDSON0zir3bjYXP6TK"
export YOUR_PG_PASSWORD="youling790313"

# helm repo remove $repo
helm repo add $repo $url
helm repo update $repo

# helm search repo dapr --devel --versions

helm upgrade --create-namespace --install \
    -n $namespace $app_name $helm \
    --set authentik.secret_key=$YOUR_SECRET_KEY \
    --set authentik.postgresql.password=$YOUR_PG_PASSWORD \
    --set postgresql.auth.password=$YOUR_PG_PASSWORD \
    -f values.yaml

# 初始化管理员密码 20240913 需要重启服务
# http://authentik.youling.io/if/flow/initial-setup/
# akadmin
